package com.mall.inform.controller;


import com.mall.commondataformat.R;
import com.mall.inform.entity.Inform;
import com.mall.inform.service.InformService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpSession;
import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2020-05-04
 */
@RestController
@RequestMapping("/inform")
public class InformController {
/*
    @Autowired
    private InformService informService;

    //查询公告
    @ApiOperation("查询公告")
    @GetMapping("/getInform")
    public R getInform(){
        List<Inform> list;
        list=informService.list(null);
        Inform inform=list.get(0);

        return R.ok().data("content",inform.getContent());
    }

 */
}

